package com.cdc.dagger2.daggeronedemo;

import javax.inject.Inject;

/**
 * Created by cdc on 2018/3/30.
 */

public class Student {
    private int id;
    private String name;

    public Student(int id, String name) {
        this.id = id;
        this.name = name;
    }
    @Inject
    public Student(){
        //使用@Inject注解  表明此构造方法需要在Collage中 被使用
        //Dagger2通过此构造方法完成Student对象的创建
    }
}
